Telegram Group & Telegram Channel
#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/44
Create:
Last Update:

#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/44

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Micropython & IOT from tw


Telegram Micropython & IOT
FROM USA